#ifndef SNCascadeImageReader_h__
#define SNCascadeImageReader_h__
//-----------------------------------------------------------------------------
#include <QString>
#include "SNNegImageReader.h"
#include "SNPosReader.h"
//-----------------------------------------------------------------------------

class SNCascadeImageReader
{
public:
	SNCascadeImageReader();
	~SNCascadeImageReader();

	bool Create(const QString pos_filename, const QString neg_filename, cv::Size win_size);
	void Restart() { PosReader.Restart(); }
	bool GetNeg(cv::Mat &_img) { return NegReader.Get(_img); }
	bool GetPos(cv::Mat &_img) { return PosReader.Get(_img); }

private:
	
	SNNegImageReader NegReader;
	SNPosImageReader PosReader;
};
//-----------------------------------------------------------------------------
#endif // SNCascadeImageReader_h__
